﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


   public  interface InterfaceCompoent
    {
        /// <summary>
        /// 每种类型组件都有自己单独的哈希（只区分类型）
        /// </summary>
          Int16 hashCode { get; set; }

        /// <summary>
        /// 获取组件所处实体
        /// </summary>
         ECSEntityBase Entity { get; set; }

        /// <summary>
        /// 获取组件所处世界
        /// </summary>
         ECSWorldBase World { get; set; }
        /// <summary>
        /// 组件初始化方法
        /// </summary>
         void Init();
        /// <summary>
        /// 返回组件哈希
        /// </summary>
        /// <returns></returns>
        int ToHash();

    }

